body{
    background-color:black;
    color: #5555555F;
    font-family: "Andale Mono", monospace;
    font-size: 16px;
    font-weight: bold;
    /*font 简洁方式*/
    font: normal 20px Arial, Helvetica, sans-serif;
    line-height: 1.5em;  /*行间距*/
}
h1{
    color: royalblue;
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
}
p{
    color: red;
    font-family: "Andale Mono", monospace;
    /* margin:外边距 */
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 10px;
    margin-left: 10px;
    /* 外边距简写方法1，顺序 上、右、下、左，从上开始顺时针*/
    margin: 5px 10px 5px 10px;
    /* 外边距简写方法2, 上下 左右 */
    margin: 5px 10px;
    /* 外边距简写3 所有边距都一样 */
    margin: 5px;
    /* 外边距简写4 上边距 左右边距 下边距 */
    margin: 5px 10px 5px;
}
button{
   background-color: #444; 
   border: #444;
   color: #fff;
   padding: 10px 15px;
}
/*鼠标移动*/
button:hover{
    background-color: red;
    border: red;
}
/*按下*/
button:active{
    background-color:chocolate;
    border: chocolate;
}

a{
    text-decoration: none;
    color: #5555555F;
}

a:hover{
    color: cyan;
}

a:visited{
    color:red;
}

.box1{
    background-color: aquamarine;   
    color:rosybrown;
    border: 5px blue solid;
    border-right: 5px red solid;
    border-top: 8px blue dotted;
    border-bottom: 1px firebrick double;
    border-bottom-width: 8px;
    border-bottom-style: dashed;

    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;

    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
}
.box1 h1{
    font-family: 'Times New Roman', Times, serif;
    font-weight: 800;
    font-style: italic;
    text-decoration: underline; /*下划线*/
    text-transform: uppercase; /*大小写*/
    letter-spacing: 1em;  /*字母间距*/
    word-spacing: 1em;  /*单词间距*/
 }
 .box2{
     text-align: center;
     border: 5px dotted #cccccc;
     border-radius: 35px;
     padding: 20px;
     margin: 30px 0px;
     /*position: relative;*/
     position: absolute;
     top: 30px;
     left: 30px;
 }
.container{
    width: 80%;
    margin: auto; /*居中*/
}
.list li{
    /* background-color: chartreuse; */
    list-style: square;
    list-style-image: url('../image/star2.png');    
}

.clearfix{
    clear: both;
}

.block{
    float: left;
    width: 33.3%;
    border: 1px solid #cccccc;
    box-sizing: border-box;  /*有边框的div，宽度就会包含边框*/
}
#main-block{
    float: left;
    width: 70%;
    border: 1px solid #cccccc;
    box-sizing: border-box;  /*有边框的div*/
}
#sidebar{
    float: right;
    width: 30%;
    border: 1px solid #cccccc;
    box-sizing: border-box;  /*有边框的div*/
}
/* 伪类选择器 */
.list2 li:nth-child(even){
    background-color: #5555555F;
}
.list2 li:first-child{
    background-color: red;
}
.list2 li:nth-child(3){
    color: aqua;
}

.position-box{
    width: 500px;
    height: 500px;
    border: 1px solid white;
    position: relative;
}

.position-box h1{
    position: absolute;
    top:50px;
}
.position-box h2{
    position: absolute;
    right: 30px;
}
#fixed{
    position: fixed;
    right: 10px;
    bottom: 100px;
}